@import "base.less";

/* 头部 */
#header {
    height: 1.3333rem;
    background-color: #1d6dff;

    .f1 {
        float: left;
        margin-top: .32rem;
        margin-left: .32rem;

        img {
            height: .6667rem;
        }
    }

    .fr {
        float: right;
        margin-top: .2667rem;
        margin-right: .32rem;

        img {
            height: .9067rem;
        }
    }
}


/* 搜索 */
#search {
    border-bottom: .0267rem solid #ccc;
    position: relative;

    .searchbox {
        margin: 0 auto;
        padding: .2667rem 5%;


        input {
            outline: none;
            height: .8rem;
            border: none;
            font-size: .4267rem;
            background-color: #f1f1f1;
            border-radius: .4rem;
            padding-left: .4rem;
            width: 90%;
        }
    }

    .btn {
        position: absolute;
        right: .2667rem;
        top: .2667rem;

        button {
            width: 1.68rem;
            height: .8rem;
            background: #1d6dff;
            border-radius: .4rem;
            font-size: .4267rem;
            color: #fff;
            border: none;
        }
    }
}


.subNav {
    background-image: linear-gradient(to bottom, #fff, #ccc);
    font-size: .3467rem;
    overflow: hidden;

    a {
        color: #333;
        text-decoration: none;
        // display: inline-block;
        // height: 1.0667rem;
        line-height: 1.0667rem;
        text-align: center;
        margin: 0;
        padding: 0;
        float: left;
    }

    a:nth-of-type(1) {
        padding-left: .2667rem;
    }

    a:nth-of-type(3) {
        width: 2.6667rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    a:last-of-type {
        margin-right: .2667rem;
        background-image: linear-gradient(to top, #fff, #ccc);
        width: 1.6rem;
        height: .8rem;
        text-align: center;
        line-height: .8rem;
        margin-top: .1333rem;
        color: black;
        border-radius: .1333rem;
        border: .0267rem solid #ccc;
        float: right;
    }
}

#main {
    .show {
        padding: .2667rem .2667rem 0 .2667rem;

        .pic {
            height: 160px;
            overflow: hidden;
            padding: .2667rem 0;

            img {
                width: 4.5333rem;
                margin: 0 auto;
            }
        }

        .title {
            margin: .2667rem 0;
            font-size: .48rem;
        }

        .count {
            overflow: hidden;

            span {
                float: left;
                width: 50%;
                font-size: .3467rem;
            }
        }
    }

    .buy {
        table {
            height: 1.3333rem;
            border-bottom: .0267rem solid #ccc;

            tbody {
                tr {
                    td {
                        padding: 0 .2667rem;
                    }

                    td:nth-of-type(2) {
                        a {
                            text-decoration: none;
                            color: #000;

                        }
                    }
                }
            }
        }
    }
}

.comment {
    h4 {
        margin-top: 0;
        height: .9067rem;
        line-height: .9067rem;
        text-align: center;
        background-color: #dbdbdb;
        font-size: .48rem;
    }

    .comContainer {

        .container {
            border-bottom: .0267rem solid #ccc;
            padding: 0 .2667rem;

            div {
                overflow: hidden;

                span {
                    margin-top: .1333rem;
                    font-size: .3467rem;
                }

                span:first-of-type {
                    float: left;
                }

                span:last-of-type {
                    float: right;
                }
            }

            p {
                line-height: 1.42857143;
                color: #333;
                font-size: .3467rem;
            }

            p:nth-of-type(1) {
                margin: .2667rem 0;
            }

            div {
                overflow: hidden;
                margin-bottom: .2667rem;

                p {
                    float: right;
                }
            }
        }
    }
}


#footer {
    background-color: #f4f4f4;

    .more {
        padding: .2667rem 0;

        a {
            display: block;
            width: 90%;
            font: .32rem/.8rem "";
            margin-left: 5%;
            background-color: #f9f9f9;
            text-align: center;
            border: .0267rem solid #ddd;
            border-radius: .1333rem;
        }
    }

    .rank {
        position: relative;
        background-color: #1d6dff;
        height: .9333rem;
        padding-left: .2667rem;
        color: #fff;
        font: normal .5333rem/.9333rem "微软雅黑";
        margin: .2667rem .16rem 0 0;

        a {
            position: absolute;
            top: .2rem;
            right: .2rem;

            img {
                height: .5333rem;
            }
        }
    }

    .login {
        .row {
            display: flex;
            margin-top: .2667rem;

            a {
                flex: 1;
                border: .0267rem solid #c4c4c4;
                font: .3733rem/.88rem "";
                text-align: center;

                &:nth-child(2),
                &:nth-child(3) {
                    border-left: none;
                }
            }
        }

        .container {
            padding-top: .2667rem;
            font-size: .3467rem;

            p {
                text-align: center;
                padding-bottom: .2667rem;

                a {
                    font-size: .3467rem;
                    color: #666
                }
            }
        }
    }
}